package com.guo.dms.dept.user.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.guo.dms.dept.user.entity.User;

public interface UserDao extends UserMapper{
	/*    int deleteByPrimaryKey(Integer id);

	    int insert(User record);

	    int insertSelective(User record);

	    User selectByPrimaryKey(Integer id);

	    int updateByPrimaryKeySelective(User record);

	    int updateByPrimaryKey(User record);*/
	    
	    
	    
	  //获取职位下所有用户
	  public List<User> selectUserByRoleId(Integer roleId);
	  //获取部门下所有用户
	  public List<User> selectUserByDepartmentId(Integer depId);
	  
	  public List<User> selectAllUser();
	  
	  public User selectUserByUserName(String userName);
}
